//
//  NSData+Mango.h
//  Mango
//
//  Created by 胡超 on 2017/12/25.
//  Copyright © 2017年 胡超., ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(uint32_t, MGDESOptions) {
    kMGDESOptionPKCS7Padding    = 0x0001,
    kMGDESOptionECBMode         = 0x0002,
};

@interface NSData (Mango)

@property (readonly) NSString *md5Str;

- (NSData *)desEncryptData:(MGDESOptions)options key:(const void *)key iv:(const void *)iv;
- (NSData *)desDecryptData:(MGDESOptions)options key:(const void *)key iv:(const void *)iv;

@end

NS_ASSUME_NONNULL_END
